package com.qfedu.service;

import com.qfedu.entity.Anonymity;
import com.qfedu.entity.ResponseData;
import com.qfedu.entity.Skill;
import com.qfedu.entity.Week;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Date;
import java.util.List;

public class test {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        WeekSerivice weekSerivice = applicationContext.getBean(WeekSerivice.class);
        Week week = new Week();
        week.setId(22);
        week.setContent("周报");
        week.setTitle("标题");
        week.setuNo("eee");
        week.setStatus(1);
        week.setCreateTime(new Date(System.currentTimeMillis()));
        boolean updateWeek = weekSerivice.updateWeek(week);

    }
}
